package exp2;

abstract class Data {
    abstract public void DisplayValue();
}

class Integer extends Data {
    int value;
    Integer() {
        value=1000;
    }
    public void DisplayValue(){
        System.out.println (value);
    }
}

class Byte extends Data{
    byte value;
    Byte(){
        value = 10;
    }
    public void DisplayValue() {
        System.out.println(value);
    }
}

class Short extends Data{
    short value;
    Short(){
        value = 100;
    }
    public void DisplayValue() {
        System.out.println(value);
    }
}

class Boolean extends Data{
    boolean value;
    Boolean(){
        value = true;
    }
    public void DisplayValue() {
        System.out.println(value);
    }
}

class Float extends Data {
    float value;
    Float() {
        value=1000;
    }
    public void DisplayValue(){
        System.out.println (value);
    }
}

class Long extends Data {
    long value;
    Long() {
        value=1000;
    }
    public void DisplayValue(){
        System.out.println (value);
    }
}

class Double extends Data {
    double value;
    Double() {
        value=1000;
    }
    public void DisplayValue(){
        System.out.println (value);
    }
}


